package com.zis.starter.core;

import org.beetl.sql.core.engine.PageQuery;

import java.util.List;
import java.util.Map;

public interface IBaseInter<T> {

    ResponseEntity insert(T model) throws Exception;

    ResponseEntity update(T model) throws Exception;

    ResponseEntity delete(String id) throws Exception;

    ResponseEntity selectById(String id) throws Exception;

    PageQuery<T> findByPage(SearchParams params) throws Exception;

    ResponseEntity findByCondition(Map params) throws Exception;
}
